exports.request = function(app,queryResponse){
	//用户登录验证
	app.post('/sas/login', function (req, res) {
	  res.send(queryResponse.login);
	});
  /**
   * 省份查询
   */
  app.get('/sas/common/provinceQuery', function (req, res) {
    var resValue = {
      state: '10000',
      data: queryResponse.provinces
    };
    res.send(resValue);
  });
  //查询业务线
  app.get('/sas/common/businessLineQuery', function (req, res) {
    res.send(queryResponse.businessLine)
  });
  //查询接入渠道
  app.post('/sas/common/accessChannelsQuery', function (req, res) {
    res.send(queryResponse.accessChannels);
  });
  //查询机构
  app.get('/sas/common/agencyQuery', function (req, res) {
    res.send(queryResponse.agencyQuery);
  });
  //查询交易类型
  app.post('/sas/common/tradeTypeQuery', function (req, res) {
    res.send(queryResponse.tradeType);
  });
  //交易状态查询
  app.post('/sas/common/tradeStateQuery', function (req, res) {
    res.send(queryResponse.tradeState);
  });
  //查询系统名称
  app.get('/sas/common/sysQuery', function (req, res) {
    res.send(queryResponse.system);
  });
  //查询业务名称
  app.post('/sas/common/businessQuery', function (req, res) {
    if(req.body.systemCode === '11'){
      res.send(queryResponse.upayBusiness);
    }else {
      res.send(queryResponse.pbossBusiness);
    }
  });
  //查询服务器时间
  app.get('/sas/common/getServerTime', function (req, res) {
    res.send({
      state:'10000',
      data:new Date().getTime()
    });
  });
  //角色下拉框查询
  app.get('/sas/sysMng/role/roleQuery',function (req,res) {
    res.send(queryResponse.roleData);
  });
  //查询当前用户所有模块
  app.post('/sas/common/queryUserModule',function(req,res){
    res.send(queryResponse.queryUserModule);
  });
  //查询衡量指标
  app.post('/sas/common/queryMeasureIndex',function(req,res){
    var code = req.body.code;
    if(code === '1'){
      res.send(queryResponse.queryMeasureIndex);
    }else if(code === '2'){
      res.send(queryResponse.queryMeasureIndex1);
    }else if(code === '3'){
      res.send(queryResponse.queryMeasureIndex2);
    }else if(code === '4'){
      res.send(queryResponse.queryMeasureIndex3);
    }else if(code === '5'){
      res.send(queryResponse.queryMeasureIndex4);
    }
  });
  //查询工单类型
  app.get('/sas/common/queryWorkDataType',function(req,res){
    res.send(queryResponse.queryWorkDataType);
  });
  //查询统计维度
  app.post('/sas/common/queryStatisticsType',function(req,res){
    var code = req.body.code;
    if(code === '1'){
      res.send(queryResponse.queryStatisticsType);
    }else{
      res.send(queryResponse.queryStatisticsType1);
    }
  });

  //signOut
	app.post('/sas/signOut',function(req,res){
    res.send({state:'10000'});
  });
  app.get('/sas/allSystemModules',function(req,res){
    res.send(queryResponse.allSystemModules);
  })
  app.get('/sas/common/exit',function(req,res){
    res.send(queryResponse.exit);
  })
};